/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mad.bikepony.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.mad.bikepony.service.http.AgentServiceSoap}.
 *
 * @author    nicola
 * @see       com.mad.bikepony.service.http.AgentServiceSoap
 * @generated
 */
public class AgentSoap implements Serializable {
	public static AgentSoap toSoapModel(Agent model) {
		AgentSoap soapModel = new AgentSoap();

		soapModel.setAgentId(model.getAgentId());
		soapModel.setPassword(model.getPassword());
		soapModel.setName(model.getName());
		soapModel.setSurname(model.getSurname());
		soapModel.setMobilePhone(model.getMobilePhone());
		soapModel.setStatus(model.getStatus());
		soapModel.setLastPos_latitude(model.getLastPos_latitude());
		soapModel.setLastPos_longitude(model.getLastPos_longitude());
		soapModel.setLastUpdate(model.getLastUpdate());

		return soapModel;
	}

	public static AgentSoap[] toSoapModels(Agent[] models) {
		AgentSoap[] soapModels = new AgentSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static AgentSoap[][] toSoapModels(Agent[][] models) {
		AgentSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new AgentSoap[models.length][models[0].length];
		}
		else {
			soapModels = new AgentSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static AgentSoap[] toSoapModels(List<Agent> models) {
		List<AgentSoap> soapModels = new ArrayList<AgentSoap>(models.size());

		for (Agent model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new AgentSoap[soapModels.size()]);
	}

	public AgentSoap() {
	}

	public long getPrimaryKey() {
		return _agentId;
	}

	public void setPrimaryKey(long pk) {
		setAgentId(pk);
	}

	public long getAgentId() {
		return _agentId;
	}

	public void setAgentId(long agentId) {
		_agentId = agentId;
	}

	public String getPassword() {
		return _password;
	}

	public void setPassword(String password) {
		_password = password;
	}

	public String getName() {
		return _name;
	}

	public void setName(String name) {
		_name = name;
	}

	public String getSurname() {
		return _surname;
	}

	public void setSurname(String surname) {
		_surname = surname;
	}

	public String getMobilePhone() {
		return _mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		_mobilePhone = mobilePhone;
	}

	public int getStatus() {
		return _status;
	}

	public void setStatus(int status) {
		_status = status;
	}

	public double getLastPos_latitude() {
		return _lastPos_latitude;
	}

	public void setLastPos_latitude(double lastPos_latitude) {
		_lastPos_latitude = lastPos_latitude;
	}

	public double getLastPos_longitude() {
		return _lastPos_longitude;
	}

	public void setLastPos_longitude(double lastPos_longitude) {
		_lastPos_longitude = lastPos_longitude;
	}

	public long getLastUpdate() {
		return _lastUpdate;
	}

	public void setLastUpdate(long lastUpdate) {
		_lastUpdate = lastUpdate;
	}

	private long _agentId;
	private String _password;
	private String _name;
	private String _surname;
	private String _mobilePhone;
	private int _status;
	private double _lastPos_latitude;
	private double _lastPos_longitude;
	private long _lastUpdate;
}